package com.ricky.constencrypt.demo

import android.app.Application
import android.content.Context
import com.ricky.constencrypt.api.ConstEncrypt

class MainApplication : Application() {
    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        AESUtil.setSecretKey("88888888")
        ConstEncrypt.init(object : ConstEncrypt.IDecrypt {
            override fun decrypt(value: String): String {
                return AESUtil.decrypt(value)
            }
        })
    }
}